<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<html>
<head>
    <title>出错了</title>
    <style>
        body {
            background: #f5f5f5;
            font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
            color: #1a1a1a;
            margin: 0;
            padding: 0;
        }
        .error-container {
            max-width: 480px;
            margin: 100px auto 0 auto;
            background: #fff;
            border-radius: 14px;
            box-shadow: 0 8px 32px rgba(0,0,0,0.10);
            padding: 48px 36px 40px 36px;
            border: 1px solid #e5e5e5;
            text-align: center;
        }
        .error-title {
            font-size: 32px;
            font-weight: 700;
            margin-bottom: 18px;
            color: #1a1a1a;
        }
        .error-icon {
            font-size: 48px;
            margin-bottom: 18px;
            color: #d32f2f;
        }
        .error-message {
            color: #d32f2f;
            font-size: 16px;
            margin-bottom: 24px;
            font-weight: 500;
        }
        .error-desc {
            color: #666;
            font-size: 14px;
            margin-bottom: 32px;
        }
        .back-btn {
            background: #1a1a1a;
            color: #fff;
            border: none;
            border-radius: 8px;
            padding: 12px 32px;
            font-size: 15px;
            font-weight: 600;
            cursor: pointer;
            text-decoration: none;
            transition: all 0.2s;
        }
        .back-btn:hover {
            background: #333;
        }
    </style>
</head>
<body>
    <div class="error-container">
        <div class="error-icon">&#9888;</div>
        <div class="error-title">出错了</div>
        <div class="error-message">
            <c:out value="${error}" default="发生未知错误，请稍后重试。"/>
        </div>
        <div class="error-desc">如有疑问，请联系管理员或返回首页。</div>
        <a href="/user/space" class="back-btn">返回首页</a>
    </div>
</body>
</html> 